package com.silver.weibo.entity.vo;

import com.silver.weibo.utils.MyContents;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ViewBloggerVO implements Serializable {
    public Integer id;
    public String nickname;
    public String image;
    public String province;
    public String city;
    public Integer sex;
    public Date birthday;
    public String signature;

    public Integer fans;
    public Integer likes;
    public Integer blogCount;

    public String getBirthday() {
        return MyContents.simpleDateFormat.format(this.birthday);
    }
}
